-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various fixes #293
Various fixes #293
Conversation
… from a state space representation according to the method on pg. 140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got some concerns over the style, but not enough to reject the pull request.
root_builder[i][1] += 1 | ||
repeated = True | ||
break | ||
if not repeated: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pattern of using a flag is why Python's for
has an else
. http://book.pythontips.com/en/latest/for_-_else.html#else-clause
root_builder = [] | ||
for root in roots: | ||
repeated = False | ||
for i in range(len(root_builder)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for x in range
is a bit of an antipattern in Python. Especially this form range(len(
. Check out https://nedbatchelder.com/text/iter.html
Fixed poles, zeros and bug in mimotf_slice. This should resolve issues #178 and #179. Modified sv_dir_plot in utilsplot.py to plot magnitude and phase of direction vectors. Previously it just plotted the real values and discarded the imaginary parts.